package com.itheima.dao;

import com.itheima.domain.Customer;

import java.util.List;

/**
 * ClassName:CustomerDao
 * Package:com.itheima.dao
 * Description:
 * Date:2020/3/1623:44
 * User: snow
 */
public interface CustomerDao {
	// 查询客户
	public List<Customer> findAll() throws Exception;

	// 创建客户
	public int save(Customer customer) throws Exception;

	// 通过id查询客户
	public Customer findById(String id) throws Exception;

	// 更新客户信息
	public int update(Customer customer) throws Exception;

	// 删除客户
	public void delete(String id) throws Exception;

	/**
	 * 模糊查询
	 */
	public List<Customer> findSome(Customer customer) throws Exception;

	List<Customer> findAllCustomerAndLinkMan();

	Customer findCustomerById(String customerId);
}
